import request from '@/utils/request'

// 入库成本维护列表
export function queryFinInstockMaintainList(data) {
  return request({
    url: '/tFinInstockMaintain/queryFinInstockMaintainList',
    method: 'post',
    data
  })
}
// 出库成本维护列表
export function queryFinOutstockMaintainList(data) {
  return request({
    url: '/tFinInstockMaintain/queryFinOutstockMaintainList',
    method: 'post',
    data
  })
}
// 出入库成本维护运算列表
export function queryCostmaintainList(data) {
  return request({
    url: '/tCostmaintain/queryCostmaintainList',
    method: 'post',
    data
  })
}
// 期间成本运算
export function calculateIssueDetail(data) {
  return request({
    url: '/tFinInstockMaintain/calculateIssueDetail',
    method: 'post',
    data
  })
}
// 期间成本运算
export function calculateIssueDetail1(data) {
  return request({
    url: '/tFinInstockMaintain/calculateIssueDetail1',
    method: 'post',
    data
  })
}
// 删除行记录
export function deleteCostmaintain(data) {
  return request({
    url: '/tCostmaintain/deleteCostmaintain',
    method: 'post',
    data
  })
}
// 存货收发存明细表
export function queryIssueDetailList(data) {
  return request({
    url: '/tFinIssueDetails/queryIssueDetailList',
    method: 'post',
    data
  })
}
// 新增成本调整单
export function createFinCola(data) {
  return request({
    url: '/tFinCola/createFinCola',
    method: 'post',
    data
  })
}
// 修改成本调整单
export function updateFinCola(data) {
  return request({
    url: '/tFinCola/updateFinCola',
    method: 'post',
    data
  })
}
// 成本运算结果查询列表
export function queryCostcalcuationList(data) {
  return request({
    url: '/tCostcalcuation/queryCostcalcuationList',
    method: 'post',
    data
  })
}
// 合法化检查
export function checkItems(data) {
  return request({
    url: '/tFinCostCollection/checkItems',
    method: 'post',
    data
  })
}
// 合法化检查列表
export function queryfcheckitemsList(data) {
  return request({
    url: '/fcheckitems/queryfcheckitemsList',
    method: 'post',
    data
  })
}
// 合法化检查列表 -- 明细
export function queryfcheckitemsdetail(params) {
  return request({
    url: '/fcheckitems/queryfcheckitemsdetail',
    method: 'get',
    params
  })
}
// 成本调整单列表
export function queryFinColaList(data) {
  return request({
    url: '/tFinCola/queryFinColaList',
    method: 'post',
    data
  })
}
// 成本调整单详情
export function queryFinColaDetails(params) {
  return request({
    url: '/tFinCola/queryFinColaDetails',
    method: 'get',
    params
  })
}
// 成本调整单反提交
export function notsubmitFinCola(data) {
  return request({
    url: '/tFinCola/notsubmitFinColas',
    method: 'post',
    data
  })
}

// 成本调整单提交
export function submitFinCola(data) {
  return request({
    url: '/tFinCola/submitFinColas',
    method: 'post',
    data
  })
}
// 成本调整单审核
export function auditFinColas(data) {
  return request({
    url: '/tFinCola/auditFinColas',
    method: 'post',
    data
  })
}
// 成本调整单反审核
export function notauditFinColas(data) {
  return request({
    url: '/tFinCola/notauditFinColas',
    method: 'post',
    data
  })
}

// 成本调整单删除
export function delFinColas(data) {
  return request({
    url: '/tFinCola/delFinColas',
    method: 'post',
    data
  })
}
// 成本核算 结存
export function balance(data) {
  return request({
    url: '/tFinInstockMaintain/balance',
    method: 'post',
    data
  })
}
// 成本核算 反结存
export function antibalance(data) {
  return request({
    url: '/tFinInstockMaintain/antibalance',
    method: 'post',
    data
  })
}
// 成本结算
export function queryCostCalculationList(data) {
  return request({
    url: '/tFinCostCalculation/queryCostCalculationList',
    method: 'post',
    data
  })
}
// 领料明细
export function queryPickTableList(data) {
  return request({
    url: '/tPrdPickmtrl/queryPickTableList',
    method: 'post',
    data
  })
}
// 生产入库领料查询
export function queryMoInstockAndPickList(data) {
  return request({
    url: '/tPrdMo/queryMoInstockAndPickList',
    method: 'post',
    data
  })
}
// 生产入库领料明细
export function queryMoInstockAndPickDetailList(data) {
  return request({
    url: '/tPrdMo/queryMoInstockAndPickDetailList',
    method: 'post',
    data
  })
}
// 委外入库核算
export function querySubInstockMaintainList(data) {
  return request({
    url: '/tFinInstockMaintain/querySubInstockMaintainList',
    method: 'post',
    data
  })
}
// 费用归集
export function queryFinCostList(data) {
  return request({
    url: '/tFinCost/queryFinCostList',
    method: 'post',
    data
  })
}
// 费用归集-修改自定义金额
export function updateFinCostDetails(data) {
  return request({
    url: '/tFinCost/updateFinCostDetails',
    method: 'post',
    data
  })
}
// 查询费用归集明细
export function queryCollectionSource(data) {
  return request({
    url: '/tFinCost/queryCollectionSource',
    method: 'post',
    data
  })
}
// 成本运算
export function tFinCostCollection(data) {
  return request({
    url: '/tFinCostCollection/ca',
    method: 'post',
    data
  })
}
// 重新归集
export function costCalculation(data) {
  return request({
    url: '/tFinCost/costCalculation',
    method: 'post',
    data
  })
}
// 查询异常余额汇总表
export function queryExceptionGatherList(data) {
  return request({
    url: '/tFinExceptionGather/queryExceptionGatherList',
    method: 'post',
    data
  })
}
// 分摊明细
export function queryCostShareList(data) {
  return request({
    url: '/tFinCostCalculationSharedetail/queryCostShareList',
    method: 'post',
    data
  })
}
// 费用分配明细表
export function queryCalComponentList(data) {
  return request({
    url: '/tFinCalculationComponent/queryCalComponentList',
    method: 'post',
    data
  })
}
// 完工入库 来源单据 跳转
export function queryRedirectUrl(data) {
  return request({
    url: '/common/queryRedirectUrl',
    method: 'post',
    data
  })
}
// 价格来源
export function queryCostCalculationDetail(data) {
  return request({
    url: '/tFinCostCalculation/queryCostCalculationDetail',
    method: 'post',
    data
  })
}
// 入库维护引入单价
export function updateMaintainLPirce(data) {
  return request({
    url: '/tFinInstockMaintain/updateMaintainLPirce',
    method: 'post',
    data
  })
}
